<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Spring Boot小项目</title>
    <link rel="stylesheet" th:href="@{/webjars/layui/css/layui.css}">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">Spring Boot小项目</div>
        <ul class="layui-nav layui-layout-right">
            <img class="layui-nav-img" th:src="@{/img/login/img.jpg}">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <span th:text="${session.sysAccount.realName}"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd>
                        <a href="">基本资料</a>
                    </dd>
                    <dd>
                        <a href="">安全设置</a>
                    </dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a th:href="@{/auth/logout}">签退</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed" th:each="sysResourceVo :${sysResourceVoList}">
                    <a class="" href="javascript:;" th:text="${sysResourceVo.resourceName}">所有商品</a>
                    <dl class="layui-nav-child" th:if="${sysResourceVo.subSysResourceVoList} ne null" th:each="sub :${sysResourceVo.subSysResourceVoList}" >
                        <dd><a th:href="'javascript:showTab(\''+${sub.url}+'\',\''+${sub.resourceName}+'\','+${sub.resourceId}+');'"
                               th:text="${sub.resourceName}" >列表一</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="layui-tab" lay-filter="menu" lay-allowClose="true">
            <ul class="layui-tab-title">
                <li class="layui-this">欢迎页</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">欢迎使用本系统</div>
            </div>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © zancong - 底部固定区域
    </div>
</div>
<script th:src="@{/webjars/layui/layui.all.js}"></script>
<script th:src="@{/webjars/jquery/jquery.js}"></script>
<script th:src="@{/js/login/main.js}"></script>

</body>
</html>